<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		
		<?php echo $html->charset(); ?>
		
		<title>
			<?php echo __('SMG_TITLE', true); ?>
			<?php echo $title_for_layout; ?>
		</title>
		
		<?php
		
			echo $html->meta('icon');
			
			echo $html->css('mboxs');
			
			//echo $html->css('cake.generic');
			
			echo $html->css('smg');
	
			echo $scripts_for_layout;
		?>
	
	</head>
	
	<body>
		
	    <body>
	    	
		<br>
		
	    <div id="fondo">
	
	        <div id="todo">
	        	
	        	<div id="header">
				
				    <div class="head-title">
					
					    <?php __('SMG_TITLE_HEADER'); ?>
						
					</div>
					
				</div>
				
				<!--Menu-->
				
				<div class="menu">
					
					<h2>Menu Principal</h2>
					
					<ul>
					    <li>
					        <a name="inscribirBoleta" href="/boletas/add">Inscribir Estudiante</a>
					    </li>
					    <li>
					
					        <a name="buscarBoleta" href="/boletas/buscar">Consultar Estudiante</a>
					    </li>
					    <li>
					        <a name="listarBoleta" href="/boletas/reportes">Reportes</a>
					    </li>
					</ul>
						
				</div>
					
				<!-- content -->
				
				<div id="content">
				
					<p>
						
					<?php
							$session->flash(); 
					?>
			
					<?php echo $content_for_layout; ?>
			    
					<br clear="all">
				
				</div>
	
	        </div>
	    </div>
		<!-- foot -->
		<div id="sobre">
			<br>
			
			<?php __('SMG_TITLE_FOOTER'); ?><a href="mailto:yfreee@gmail.com">MEP</a>
			
			<div>
			
			<?php
					$lan = Configure::read('Config.language');
			
					if(substr_count($lan, "en") > 0)
					{
						echo $html->image('../img/flags/us.png');
					}
					if(substr_count($lan, "es") > 0)
					{
						echo $html->image('../img/flags/cr.png');
					}		
			?>
			
			</div>
			
		</div>
		<!-- end foot -->

		<?php echo $cakeDebug; ?>
		
	</body>
</html>